package cn.gailvlun.gll.presentation.hotel.day

import android.content.Context
import cn.gailvlun.gll.R
import cn.gailvlun.gll.net.HotelTemplate
import com.github.markzhai.recyclerview.SingleTypeAdapter


class HotelTemplateAdapter : SingleTypeAdapter<HotelTemplate> {
    constructor(context: Context?) : super(context, R.layout.item_hotel_template)

    fun getData(): List<HotelTemplate> {
        return mCollection
    }

    fun getLastId(): Int? {
        return mCollection.lastOrNull()?.id
    }
}